package com.sensei.search.util.pool;

/**
 * 
 * Copied from Project Voldemort: <a href="http://project-voldemort.com/">http://project-voldemort.com/</a>
 * Indicates that we have exceeded the maximum number of successive invalid
 * resources that can be created in a single checkout.
 * 
 * @author jay
 * 
 */
public class ExcessiveInvalidResourcesException extends RuntimeException {

	private final static long serialVersionUID = 1L;

	public ExcessiveInvalidResourcesException(int count) {
		super(
				count
						+ " successive attempts to create a valid resource failed; "
						+ "this exceeds the maximum resource creation limit for a single checkout.");
	}

}
